package com.smart.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.smart.service.MenuService;

/**
 * 
 * 版权所有：xxxxxxx
 * @Description: 主页
 * @Title: MianPageController.java 
 * @ClassName: MianPageController 
 * @author tangyan 
 * @date 2019年2月13日 下午7:30:02 
 * @version V1.0
 */
@Controller
public class MianPageController {

	@Autowired
	MenuService menuService;
	
	/**
	 * 
	 * @Title: toMainPage 
	 * @Description: 跳转主页面
	 * @author tangyan 
	 * @param userToken
	 * @return
	 * @throws Exception 
	 */
	@RequestMapping("/toMainPage")
	public ModelAndView toMainPage(String userToken) throws Exception{
		//获取菜单
		ModelMap modelMap =  new ModelMap();//(ModelMap) menuService.mainPage(userToken);
	
		return new ModelAndView("/index" , modelMap);
	}
	

}
